package com.gjy.spring;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.MDC;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.Arrays;
import java.util.UUID;
import java.util.stream.Collectors;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-01-23 14:29:42
 */
@SpringBootApplication
public class SpringApp {
    private static final Logger log = LoggerFactory.getLogger(SpringApp.class);
    public static void main(String[] args) {
        MDC.put("requestId", UUID.randomUUID().toString());
        log.info("args:{}", Arrays.stream(args).collect(Collectors.toList()));
        log.info("args:{}", args.length);
        SpringApplication.run(SpringApp.class, args);
    }
}
